package com.zhouheng.springbootmultithreading.tuling.hashMap.threadpool;

import lombok.Getter;

/***
 * 项目
 */
public class MyTask implements Runnable {

    @Getter
    public int i = 0;

    public MyTask(int i) {
        this.i = i;
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "程序员做第" + i + "个项目");
        try {
            // 业务逻辑
            Thread.sleep(3000L);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
